class TabPane {
  props = { key: Number, tab: String };

  state = {
    activeKey: null,
    key: this.props.key,
  };

  constructor(esTabs) {
    esTabs.getContext().state.labels.push(this.props.tab);
    esTabs.getContext().state.childrens.push($scope);
    this.state.activeKey = esTabs.getContext().state.activeKey;
  }
}
